package com.wutuo.roster.provider.dao;

import com.wutuo.roster.api.request.ChildApplyRequest;
import com.wutuo.roster.api.request.ListChildApplyRequest;
import com.wutuo.roster.api.response.ChildApplyResponse;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 孩子申请 Dao 层
 *
 * @author lvh
 * @version 1.0
 */
public interface ChildApplyMapper extends BaseChildApplyMapper {

    @SelectProvider(type = ChildApplySqlProvider.class, method = "lisForPage")
    @ResultType(value = ChildApplyResponse.class) List<ChildApplyResponse> lisForPage(
        ListChildApplyRequest request);

    @SelectProvider(type = ChildApplySqlProvider.class, method = "list")
    @ResultType(value = ChildApplyResponse.class) List<ChildApplyResponse> list(
        ChildApplyRequest request);
}